package exception_handling;

public class TestCircleWithException {
	/** Main method */
	public static void main(String[] args) {
		try {
			CircleWithException c1  = new CircleWithException(5);
			CircleWithException c2  = new CircleWithException(-5);
			CircleWithException c3  = new CircleWithException(0);
		}
		catch (IllegalArgumentException ex) {
			System.out.println(ex);
		}
		finally {
			System.out.println("Number of objects created: " +
					CircleWithException.getNumberOfObjects());
		}
		
	}
}



